home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Libraries / EleOfC++ vrs 0.1 / Scribble / TScribbleApp.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-07-14  |  995 b   |  51 lines  |  [TEXT/KAHL]

  1. /*
  2. ** This is the TScribleApp class definition.  This class is an adaptation of 
  3. ** the class of the same name in the book, Elements of C++ Macintosh 
  4. ** Programming, by Dan Weston.
  5. **
  6. ** Copyright © 1991 Mark Gross 
  7. ** (RR2, Box 84, Clayville, NY 13322);         
  8. ** this file may be published everywhere, but no charge
  9. ** may be made for its use.  Please contact me about any bugs found.
  10. ** I'm also looking for Macintosh development work, so drop me a line
  11. ** if you think I could help.  
  12. */
  13.  
  14. #include "TScribbleApp.h"
  15. #include "TScribbleDoc.h"
  16. #include <oops.h>
  17.  
  18.  
  19. TDoc*    TScribbleApp::MakeDoc(SFReply *reply)
  20. {
  21.         return (((TScribbleDoc *)new(TScribbleDoc))->Init(GetCreator(),reply) );
  22. }    
  23.     
  24.  
  25. OSType    TScribbleApp::GetDocType(void)
  26. {
  27.     return 'SPCT';
  28. }
  29.  
  30. OSType    TScribbleApp::GetCreator(void)
  31. {
  32.     return 'SCBL';
  33. }
  34.  
  35. int        TScribbleApp::GetNumFileTypes(void)
  36. {
  37.     return 1;
  38. }
  39.  
  40. void    TScribbleApp::GetFileTypeList(void)
  41. {
  42.     fFileTypeList[0] = 'SPCT';
  43. }
  44.  
  45. Boolean    TScribbleApp::CanOpen(void)
  46. {
  47.     return TRUE;
  48. }
  49.  
  50.     
  51.